const uuid = require('uuid')

const ACCESS_TOKEN_HEADER = 'at_'
const JSON_HEADER = 'jn_'

function _basicUUID () {
  return uuid.v4()
}

export function generateAccessToken () {
  return ACCESS_TOKEN_HEADER + _basicUUID()
}

export function generateJSONName () {
  return JSON_HEADER + _basicUUID()
}
